package com.tiancheng.trade.merchant.enums;

import lombok.Getter;

/**
 * 消息队列枚举配置
 * Created by macro on 2018/9/14.
 */
@Getter
public enum MerchantQueueEnum {
    /**
     * 消息通知队列
     */
    QUEUE_MERCHANT_REGISTER("tread.merchant.direct", "tread.merchant.register", "tread.merchant.register"),
    /**
     * 消息通知ttl队列
     */
    QUEUE_TTL_MERCHANT_REGISTER_CANCEL("tread.merchant.direct.ttl", "tread.merchant.register.ttl", "tread.merchant.register.ttl");

    /**
     * 交换名称
     */
    private String exchange;
    /**
     * 队列名称
     */
    private String name;
    /**
     * 路由键
     */
    private String routeKey;

    MerchantQueueEnum(String exchange, String name, String routeKey) {
        this.exchange = exchange;
        this.name = name;
        this.routeKey = routeKey;
    }
}
